package com.my.demo;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

/**
 * @description:
 * @author: marshal
 * @date: 2021-08-24 8:17 PM
 */
public class Test {
    public static void main(String[] args) {
        String html = "<html><head><title>First parse</title></head>"
                + "<body><p>Parsed HTML into a doc.</p></body></html>";
        Document doc = Jsoup.parse(html);
        Elements p = doc.getElementsByTag("p");
        System.out.println(p.text());
    }
}
